﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace einuorg_console
{
    class Program
    {
        static void Main(string[] args)
        {
            Terminal.Write("Asimov\t\t" ,ConsoleColor.Gray);
            Terminal.WriteLine("[1] ", ConsoleColor.DarkGreen);
            Terminal.Write("JohnTurner\t", ConsoleColor.Gray);
            Terminal.WriteLine("[2] ", ConsoleColor.DarkGreen);
            Terminal.EmptyLine();

            Terminal.Tab(Terminal.TabState.Info);
            Terminal.Write("Type the class number you want to initialize: ");

            string SelectedClass = Console.ReadLine();
            if (SelectedClass == "1")
            {
                Terminal.Tab(Terminal.TabState.Success);
                Terminal.WriteLine("Welcome to Asimov class:");
                Terminal.EmptyLine();
                Asimov.Initialize();
            } 
            else if (SelectedClass == "2")
            {
                Terminal.Tab(Terminal.TabState.Success);
                Terminal.WriteLine("Welcome to JohnTurner class:");
                Terminal.EmptyLine();
                JohnTurner.Initialize();
            }
            else
            {
                Terminal.Tab(Terminal.TabState.Error);
                Terminal.Write("Unknown class number ");
                Terminal.Write(" " + SelectedClass + " ", ConsoleColor.Yellow, ConsoleColor.Red);
                Terminal.EmptyLine();
                Terminal.Tab(Terminal.TabState.Warning);
                Terminal.Write("Press any key to exit ...");
                Console.ReadLine();
            }
        }
    }
}
